package net.csdn.business.common.domain.issue.event;

import lombok.*;
import lombok.experimental.SuperBuilder;
import net.csdn.business.common.domain.issue.IssueExt;

/**
 * @author likun
 * @date 2022/11/24 18:42
 */
@Data
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
public class LockEventDto extends BaseEventDto {
    private Integer lock;

    public static LockEventDto buildChangeEvent(String id, Long projectId, String actionUid, Integer actionUserType, Integer lock, IssueExt ext) {
        return LockEventDto.builder()
                .id(id).projectId(projectId)
                .actionUid(actionUid).actionUserType(actionUserType).lock(lock).ext(ext)
                .build();
    }
}